import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class EmptyWidget extends StatelessWidget {
  final String title;
  final String content;

  const EmptyWidget({Key key, this.title = "暂时空空如也", this.content = "请多多发布,装满创意哦~"})
      : super(key: key);

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        Expanded(
          child: Column(
            children: <Widget>[
              Padding(
                padding: EdgeInsets.only(top: 240.h),
                child: Image.asset(
                  "images/null_icon.png",
                  height: 152.w,
                  width: 237.w,
                ),
              ),
              Column(
                children: <Widget>[
                  Padding(
                    padding: EdgeInsets.only(top: 20.h),
                    child: Text(
                      title,
                      style: TextStyle(fontSize: 24.sp, color: Color(0X9982868E)),
                    ),
                  ),
                  Padding(
                    padding: EdgeInsets.only(top: 10.h, right: 40.w, left: 40.w),
                    child: Text(
                      content,
                      textAlign: TextAlign.center,
                      style: TextStyle(fontSize: 24.sp, color: Color(0X9982868E)),
                    ),
                  )
                ],
              ),
            ],
          ),
        ),
      ],
    );
  }
}
